package router

import (
	"github.com/gin-gonic/gin"
	"service_base_shop_api/order_web/api"
	"service_base_shop_api/order_web/middlewares"
)

func InitOrderRouter(group *gin.RouterGroup)  {
	OrderRouter := group.Group("/order")
	{
		OrderRouter.POST("/getorder",middlewares.JWTAuth(),api.GetOrderInfo)
		OrderRouter.POST("/get_order_list",middlewares.JWTAuth(),api.GetOrderList)
		OrderRouter.POST("/get_order_details",middlewares.JWTAuth(),api.GetOrderDetails)
		OrderRouter.POST("/get_order_refund",middlewares.JWTAuth(),api.GetOrderRefunds)
		OrderRouter.POST("/buy_cart",middlewares.JWTAuth(),api.BuyCart)
		OrderRouter.POST("/create_order",middlewares.JWTAuth(),api.CreateOrder)
		OrderRouter.POST("/order_edit",middlewares.JWTAuth(),api.OrderEdit)
	}

}
